
/**
 * 信息来源 
 * http://www.pbc.gov.cn/zhengcehuobisi/125207/125213/125440/125838/125888/2968985/index.html
 */
const interestRateList = [
  {date: '1991-04-21', rates: [8.1, 8.64, 9, 9.54, 9.72]},
  {date: '1993-05-15', rates: [8.82, 9.36, 10.8, 12.06, 12.24]},
  {date: '1993-07-11', rates: [9, 10.98, 12.24, 13.86, 14.04]},
  {date: '1995-01-01', rates: [9, 10.98, 12.96, 14.58, 14.76]},
  {date: '1995-07-01', rates: [10.08, 12.06, 13.5, 15.12, 15.3]},
  {date: '1996-05-01', rates: [9.72, 10.98, 13.14, 14.94, 15.12]},
  {date: '1996-08-23', rates: [9.18, 10.08, 10.98, 11.7, 12.42]},
  {date: '1997-10-23', rates: [7.65, 8.64, 9.36, 9.9, 10.53]},
  {date: '1998-03-25', rates: [7.02, 7.92, 9, 9.72, 10.35]},
  {date: '1998-07-01', rates: [6.57, 6.93, 7.11, 7.65, 8.01]},
  {date: '1998-12-07', rates: [6.12, 6.39, 6.66, 7.2, 7.56]},
  {date: '1999-06-10', rates: [5.58, 5.85, 5.94, 6.03, 6.21]},
  {date: '2002-02-21', rates: [5.04, 5.31, 5.49, 5.58, 5.76]},
  {date: '2004-10-29', rates: [5.22, 5.58, 5.76, 5.85, 6.12]},
  {date: '2006-04-28', rates: [5.4, 5.85, 6.03, 6.12, 6.39]},
  {date: '2006-08-19', rates: [5.58, 6.12, 6.3, 6.48, 6.84]},
  {date: '2007-03-18', rates: [5.67, 6.39, 6.57, 6.75, 7.11]},
  {date: '2007-05-19', rates: [5.85, 6.57, 6.75, 6.93, 7.2]},
  {date: '2007-07-21', rates: [6.03, 6.84, 7.02, 7.2, 7.38]},
  {date: '2007-08-22', rates: [6.21, 7.02, 7.2, 7.38, 7.56]},
  {date: '2007-09-15', rates: [6.48, 7.29, 7.47, 7.65, 7.83]},
  {date: '2007-12-21', rates: [6.57, 7.47, 7.56, 7.74, 7.83]},
  {date: '2008-09-16', rates: [6.21, 7.2, 7.29, 7.56, 7.74]},
  {date: '2008-10-09', rates: [6.12, 6.93, 7.02, 7.29, 7.47]},
  {date: '2008-10-30', rates: [6.03, 6.66, 6.75, 7.02, 7.2]},
  {date: '2008-11-27', rates: [5.04, 5.58, 5.67, 5.94, 6.12]},
  {date: '2008-12-23', rates: [4.86, 5.31, 5.4, 5.76, 5.94]},
  {date: '2010-10-20', rates: [5.1, 5.56, 5.6, 5.96, 6.14]},
  {date: '2010-12-26', rates: [5.35, 5.81, 5.85, 6.22, 6.4]},
  {date: '2011-02-09', rates: [5.6, 6.06, 6.1, 6.45, 6.6]},
  {date: '2011-04-06', rates: [5.85, 6.31, 6.4, 6.65, 6.8]},
  {date: '2011-07-07', rates: [6.1, 6.56, 6.65, 6.9, 7.05]},
  {date: '2012-06-08', rates: [5.85, 6.31, 6.4, 6.65, 6.8]},
  {date: '2012-07-06', rates: [5.6, 6, 6.15, 6.4, 6.55]},
  {date: '2014-11-22', rates: [5.6, 5.6, 6, 6, 6.15]},
  {date: '2015-03-01', rates: [5.35, 5.35, 5.75, 5.75, 5.9]},
  {date: '2015-05-11', rates: [5.1, 5.1, 5.5, 5.5, 5.65]},
  {date: '2015-06-28', rates: [4.85, 4.85, 5.25, 5.25, 5.4]},
  {date: '2015-08-26', rates: [4.6, 4.6, 5, 5, 5.15]},
  {date: '2015-10-24', rates: [4.35, 4.35, 4.75, 4.75, 4.9]},
]

Page({

  data: {
    interestRateList: interestRateList,
    isDownArrow: true
  },
  reverseShow: function(e) {
    this.setData({
      interestRateList: this.data.interestRateList.reverse(),
      isDownArrow: !this.data.isDownArrow
    })
  }
})
